package com.client.model.pojo.bank;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 
 * @TableName deposit_record
 */
@TableName(value ="deposit_record")
@Data
public class DepositRecord implements Serializable {
    /**
     * 存款记录表
     */
    @TableId(value = "id", type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 存款银行卡
     */
    @TableField(value = "bank_card")
    private String bankCard;

    /**
     * 存储金额
     */
    @TableField(value = "balance")
    private BigDecimal balance;

    /**
     * 类型0：定期  1：活期
     */
    @TableField(value = "is_type")
    private Long isType;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 状态 0:未审核 1:审核通过  2:审核未通过
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 
     */
    @TableField(value = "remark")
    private Long remark;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}